

package com.hazelcast.spi.impl.securestore;

import com.hazelcast.config.SecureStoreConfig;

import javax.annotation.Nonnull;

/**
 * Factory to provide {@link SecureStore} implementations.
 */
public interface SecureStoreFactory {
    /**
     * Returns a {@link SecureStore} implementation for the provided configuration.
     *
     * @param secureStoreConfig the Secure Store configuration
     * @return a {@link SecureStore} implementation
     * @throws com.hazelcast.config.InvalidConfigurationException if the configuration is invalid
     *                                                            or not supported by this factory
     */
    @Nonnull
    SecureStore getSecureStore(@Nonnull SecureStoreConfig secureStoreConfig);
}
